home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 405 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
  2. Message-ID: <4gffm5$8d2@mulga.cs.mu.OZ.AU>
  3. X-Original-Date: 21 Feb 1996 16:02:13 GMT
  4. Path: in1.uu.net!bounce-back
  5. Date: 21 Feb 96 16:11:54 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: Namespace extension
  9. Organization: Comp Sci, University of Melbourne
  10. References: <4g2aj2$bko@ugress.uib.no> <4g5e4v$cvi@peippo.cs.tut.fi> <4gf60c$cdt@ugress.uib.no>
  11. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  12.     iQBFAgUBMStEXOEDnX0m9pzZAQHe4wF9F7RFmKziNq6Z8OUItjd2R0CaGtEwv1sO
  13.     5u0jhPAjaTKkCTLI3K4n5KupMoIlIQSw
  14.     =3w3B
  15.  
  16. >Pulkkinen Esa (esap@cs.tut.fi) wrote:
  17. >> >  3. It makes C++  easy to study, because somebody will have to know only 
  18. >> >the general idea about templates and how to apply them to any C++ elements
  19. >> >(function, class, namespase,...).  
  20. >
  21. >> This would only be true if also typedef templates and union templates
  22. >> were introduced too.
  23.  
  24. C++ already has union templates.
  25.  
  26. According to the draft standard, unions are a special sort of class,
  27. and since we have class templates, we therefore have union templates.
  28. (Encouragingly, the three compilers I tried all supported template unions.)
  29.  
  30. --
  31. Fergus Henderson                 WWW: http://www.cs.mu.oz.au/~fjh
  32. fjh@cs.mu.oz.au                  PGP: finger fjh@128.250.37.3
  33. ---
  34. [ To submit articles: try just posting with your news-reader.
  35.                       If that fails, use mailto:std-c++@ncar.ucar.edu
  36.   FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  37.   Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  38.   Comments? mailto:std-c++-request@ncar.ucar.edu.
  39. ]
  40.